QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ACT/Codec/MCUCodec/MCUCodec.cpp \
    ACT/Codec/MCUCodec/MCUCodec_SetInterval_MEMSData.cpp \
    ACT/Codec/MCUCodec/MCUCodec_SetInterval_TurnTableState.cpp \
    ACT/Codec/ReadMEMSDataCodec_Client.cpp \
    ACT/Codec/TcpCodec/TcpCodec.cpp \
    ACT/Codec/TcpCodec/TcpCodec_DataBase.cpp \
    ACT/Codec/TcpCodec/TcpCodec_HeartBeat.cpp \
    ACT/Codec/TcpCodec/TcpCodec_MCUCtl.cpp \
    ACT/Codec/TcpCodec/TcpCodec_MEMSData.cpp \
    ACT/Codec/TcpCodec/TcpCodec_ReadSensorData.cpp \
    ACT/Codec/TcpCodec/TcpCodec_Register.cpp \
    ACT/Codec/TcpCodec/TcpCodec_Script.cpp \
    ACT/Codec/TcpCodec/TcpCodec_Transmit.cpp \
    ACT/Codec/TcpCodec/TcpCodec_TurnTable.cpp \
    ACT/Codec/TcpCodec/TcpCodec_User.cpp \
    ACT/Codec/TurnTableCodec/TurnTableCodec.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_Thermostat_CurrentTemperature.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Connect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_CurrentState.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Disconnect.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Error.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningMode.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningState.cpp \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_SearchZeroState.cpp \
    ACT/Codec/UserInfoCodec.cpp \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec.cpp \
    ACT/Manager/DeviceInfoManager.cpp \
    ACT/Manager/HeartBeatManager.cpp \
    ACT/LogSaver.cpp \
    ACT/Script/ScriptInstruction/ScriptInstruction.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionLoop.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatConnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatDisconnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTargetTemperature.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTemperatureRate.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableCloseCircuit.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableConnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableDisconnect.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableEmergencyStop.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableOpenCircuit.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePositionMode.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOff.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOn.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableQuitConsole.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRateMode.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRun.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableSetLoad.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableStop.cpp \
    ACT/Script/ScriptInstruction/instruction/InstructionWait.cpp \
    ACT/Script/ScriptInstructionFactory.cpp \
    Entity/DataPackageInfo.cpp \
    Entity/DataPackage_TcpCodec.cpp \
    Entity/DataPackage_UserRegisterCodec.cpp \
    Entity/Device.cpp \
    Entity/MEMSData.cpp \
    IO/TcpDataPreprocessor.cpp \
    ObjAutoInject.cpp \
    ObjectManager.cpp \
    IO/TcpIOer.cpp \
    UI/DialogLogin.cpp \
    UI/component/Frame_TurnTableStateShower.cpp \
    UI/component/GroupBox_SetSerialPort.cpp \
    UI/component/LineEdit_ThermostatRate.cpp \
    UI/component/LineEdit_ThermostatTemperature.cpp \
    UI/component/LineEdit_TurnTableAcceleration.cpp \
    UI/component/LineEdit_TurnTablePosition.cpp \
    UI/component/LineEdit_TurnTableRate.cpp \
    UI/component/TableWidget_DeviceList.cpp \
    UI/component/TreeWidget_DisplayScriptList.cpp \
    UI/component/TreeWidget_EditScriptList.cpp \
    UI/newUI/Dialog_SetLoadMode.cpp \
    UI/newUI/Dialog_SetRunningMode.cpp \
    UI/newUI/Dialog_SetThermostat.cpp \
    UI/newUI/MemsAutoTestSoftware.cpp \
    UI/newUI/SetPositionModeDialog.cpp \
    UI/newUI/SetRateModeDialog.cpp \
    UI/newUI/SetScriptDialog.cpp \
    UI/newUI/SetScriptLoopDialog.cpp \
    UI/newUI/SetScriptWaitDialog.cpp \
    main.cpp \
    UI/MainWindow.cpp

HEADERS += \
    ACT/Codec/MCUCodec/MCUCodec.h \
    ACT/Codec/MCUCodec/MCUCodecBase.h \
    ACT/Codec/MCUCodec/MCUCodec_SetInterval_MEMSData.h \
    ACT/Codec/MCUCodec/MCUCodec_SetInterval_TurnTableState.h \
    ACT/Codec/ReadMEMSDataCodec_Client.h \
    ACT/Codec/TcpCodec/TcpCodec.h \
    ACT/Codec/TcpCodec/TcpCodecBase.h \
    ACT/Codec/TcpCodec/TcpCodec_DataBase.h \
    ACT/Codec/TcpCodec/TcpCodec_HeartBeat.h \
    ACT/Codec/TcpCodec/TcpCodec_MCUCtl.h \
    ACT/Codec/TcpCodec/TcpCodec_MEMSData.h \
    ACT/Codec/TcpCodec/TcpCodec_ReadSensorData.h \
    ACT/Codec/TcpCodec/TcpCodec_Register.h \
    ACT/Codec/TcpCodec/TcpCodec_Script.h \
    ACT/Codec/TcpCodec/TcpCodec_Transmit.h \
    ACT/Codec/TcpCodec/TcpCodec_TurnTable.h \
    ACT/Codec/TcpCodec/TcpCodec_User.h \
    ACT/Codec/TurnTableCodec/TurnTableCodec.h \
    ACT/Codec/TurnTableCodec/TurnTableDecodeBase.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_Thermostat_CurrentTemperature.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Connect.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_CurrentState.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Disconnect.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_Error.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningMode.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_RunningState.h \
    ACT/Codec/TurnTableCodec/TurnTableDecode_TurnTable_SearchZeroState.h \
    ACT/Codec/UserInfoCodec.h \
    ACT/Codec/UserRegisterCodec/UserRegisterCodec.h \
    ACT/Manager/DeviceInfoManager.h \
    ACT/Manager/HeartBeatManager.h \
    ACT/LogSaver.h \
    ACT/Script/ScriptInstruction/ScriptInstruction.h \
    ACT/Script/ScriptInstruction/instruction/InstructionLoop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatConnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatDisconnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTargetTemperature.h \
    ACT/Script/ScriptInstruction/instruction/InstructionThermostatTemperatureRate.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableCloseCircuit.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableConnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableDisconnect.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableEmergencyStop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableOpenCircuit.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePositionMode.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOff.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTablePowerOn.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableQuitConsole.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRateMode.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableRun.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableSetLoad.h \
    ACT/Script/ScriptInstruction/instruction/InstructionTurnTableStop.h \
    ACT/Script/ScriptInstruction/instruction/InstructionWait.h \
    ACT/Script/ScriptInstructionFactory.h \
    Entity/DataPackageInfo.h \
    Entity/DataPackage_TcpCodec.h \
    Entity/DataPackage_UserRegisterCodec.h \
    Entity/Device.h \
    Entity/MEMSData.h \
    IO/TcpDataPreprocessor.h \
    MacroDefinition.h \
    ObjAutoInject.h \
    UI/DialogLogin.h \
    UI/MainWindow.h \
    ObjectManager.h \
    IO/TcpIOer.h \
    UI/component/Frame_TurnTableStateShower.h \
    UI/component/GroupBox_SetSerialPort.h \
    UI/component/LineEdit_ThermostatRate.h \
    UI/component/LineEdit_ThermostatTemperature.h \
    UI/component/LineEdit_TurnTableAcceleration.h \
    UI/component/LineEdit_TurnTablePosition.h \
    UI/component/LineEdit_TurnTableRate.h \
    UI/component/TableWidget_DeviceList.h \
    UI/component/TreeWidget_DisplayScriptList.h \
    UI/component/TreeWidget_EditScriptList.h \
    UI/newUI/Dialog_SetLoadMode.h \
    UI/newUI/Dialog_SetRunningMode.h \
    UI/newUI/Dialog_SetThermostat.h \
    UI/newUI/MemsAutoTestSoftware.h \
    UI/newUI/SetPositionModeDialog.h \
    UI/newUI/SetRateModeDialog.h \
    UI/newUI/SetScriptDialog.h \
    UI/newUI/SetScriptLoopDialog.h \
    UI/newUI/SetScriptWaitDialog.h

FORMS += \
    UI/DialogLogin.ui \
    UI/MainWindow.ui \
    UI/component/GroupBox_SetSerialPort.ui \
    UI/component/TableWidget_DeviceList.ui \
    UI/newUI/Dialog_SetLoadMode.ui \
    UI/newUI/Dialog_SetRunningMode.ui \
    UI/newUI/Dialog_SetThermostat.ui \
    UI/newUI/MemsAutoTestSoftware.ui \
    UI/newUI/SetPositionModeDialogUi.ui \
    UI/newUI/SetRateModeDialogUi.ui \
    UI/newUI/SetScriptDialogUI.ui \
    UI/newUI/SetScriptLoopDialogUi.ui \
    UI/newUI/SetScriptWaitDialogUi.ui

INCLUDEPATH += \
    ./ACT/ \
    ./ACT/Codec/ \
    ./ACT/Codec/TcpCodec/ \
    ./ACT/Codec/UserRegisterCodec/ \
    ./ACT/Codec/MCUCodec/ \
    ./ACT/Codec/TurnTableCodec/ \
    ./ACT/Manager/ \
    ./ACT/Script/ \
    ./ACT/Script/ScriptInstruction/ \
    ./ACT/Script/ScriptInstruction/instruction/ \
    ./IO/ \
    ./UI/ \
    ./UI/newUI/ \
    ./UI/component/ \
    ./Entity/

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
